package com.dgshanger.sanhxiaofeisc.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.BaseViewHolder
import com.dgshanger.sanhxiaofeisc.R
import com.dgshanger.sanhxiaofeisc.common.Constants
import com.dgshanger.sanhxiaofeisc.ui.home.utils.ImageLoader

/**
 * Created by JacobHHH on 2018/4/20.
 */
class ShopPhotoListAdapter(layoutResId : Int,data : List<String>) : BaseQuickAdapter<String,BaseViewHolder>(layoutResId,data) {

    override fun convert(helper: BaseViewHolder?, item: String?) {
        ImageLoader.loadToUrl(mContext,helper!!.getView(R.id.iv_shop),Constants.getBaseUrl()+item)
    }

}